﻿using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;

namespace BaoJian.e.control
{
    public partial class ArticleList : System.Web.UI.UserControl
    {
        public string ColumnID = null;

        protected void Page_Load(object sender, EventArgs e)
        {
            if (!Page.IsPostBack)
            {
                DataSet ds = Tools.Common.GetPage("Doc", "OID,[Title]", "SID", 5, 1, false, true, "[PID]=''" + ColumnID + "'' and [Publish]=1", "OID");
                Repeater1.DataSource = ds.Tables[0];
                Repeater1.DataBind();

                ds = Tools.Common.GetPage("Doc", "OID,[Title]", "SID", 5, 2, false, true, "[PID]=''" + ColumnID + "'' and [Publish]=1 ", "OID");
                Repeater2.DataSource = ds.Tables[0];
                Repeater2.DataBind();
            }      
            
        }
    }
}